﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AutoMapper;
using DefaultConnection;
using MementoWeb.Models;
using MementoLibrary.DTOs;

namespace MementoWeb
{
    public class AutomapperConfig
    {
        public static void RegisterAutomapperMaps()
        {
            Mapper.CreateMap<CategoryGroup, CategoryGroupDTO>();
            Mapper.CreateMap<Category, CategoryDTO>();
            Mapper.CreateMap<WorkLogDTO, WorkLog>();
            Mapper.CreateMap<ProjectDTO, Project>();
            Mapper.CreateMap<TaskDTO, Task>();
            Mapper.CreateMap<WorkLog, WorkLogDTO>();
            Mapper.CreateMap<Task, TaskDTO>();
        }
    }
}